//Js for datePicker

$('#birthdate').datepicker({

	format:'Y-m-d',
	date: $('#date').val(),
	current: $('#date').val(),
	starts: 1,
	position: 'bottom',
	onBeforeShow: function(){
		$('#date').DatePickerSetDate($('#date').val(), true);
	},
	onChange: function(formated, dates){
		$('#date').val(formated);
	}
});
